<template>
  <div id="app">
    <Header></Header>
    <router-view></router-view>
    <!-- <Footer v-show="!$route.meta.isHiddenFooter"></Footer> -->
    <Footer v-show="$route.path != '/login' && $route.path != '/register'"></Footer>
    <LoginAndRegisterFooter v-show="$route.path === '/login' || $route.path === '/register'"></LoginAndRegisterFooter>
  </div>
</template>

<script>
import Header from './components/Header/index.vue'
import Footer from './components/Footer/index.vue'
import LoginAndRegisterFooter from './components/LoginAndRegisterFooter'

export default {
  name: 'App',
  components: {
    Header,
    Footer,
    LoginAndRegisterFooter
  },
  mounted(){
    // this.$store.dispatch('getCategoryList')
    this.$store.dispatch('home/getCategoryList')
  }
}
</script>

<style>

</style>
